package com.hzw.saas.common.config.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @author zzl
 * @since 08/31/2021
 */
@Data
public class BaseAssociativeModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID, 自增
     */
    @TableId(type = IdType.AUTO)
    private Integer pid;

    /**
     * 创建人id
     */
    @TableField(fill = FieldFill.INSERT)
    protected String creatorId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    protected Date createTime;

}
